package com.baiyang.server.model.system;

import java.util.List;

import com.baiyang.server.annotation.NotNull;
/**
 * @author XVX - generator
 * @version 1
 */
@NotNull
public class User {
	//用户唯一ID
	@NotNull
	private String id;	
	//用户名
	@NotNull
	private String userName;	
	//用户姓名
	private String userReal;	
	//用户性别：0-女，1-男
	@NotNull
	private String sex;	
	//用户手机号
	@NotNull
	private String phone;	
	//采用MD5加密存储的登录密码信息
	@NotNull
	private String password;	
	//创建时间
	private String createTime;	
	//上次登录时间
	private String loginTime;
	//是否有效：1-有效，0-无效
	private String available = "1";
	//是否删除：1-删除，0-不删除
	private String del = "0";
	// 头像url
	private String avatarUrl;
	/**
	 * add
	 * @return
	 */
	//用户角色
	private List<Role> roles;
	
	public String getId(){
		return id;
	}
	public void setId(String id){
		this.id = id;
	}
	public String getUserName(){
		return userName;
	}
	public void setUserName(String userName){
		this.userName = userName;
	}
	public String getUserReal(){
		return userReal;
	}
	public void setUserReal(String userReal){
		this.userReal = userReal;
	}
	public String getSex(){
		return sex;
	}
	public void setSex(String sex){
		this.sex = sex;
	}
	public String getPhone(){
		return phone;
	}
	public void setPhone(String phone){
		this.phone = phone;
	}
	public String getPassword(){
		return password;
	}
	public void setPassword(String password){
		this.password = password;
	}
	public String getCreateTime(){
		return createTime;
	}
	public void setCreateTime(String createTime){
		this.createTime = createTime;
	}
	public String getLoginTime(){
		return loginTime;
	}
	public void setLoginTime(String loginTime){
		this.loginTime = loginTime;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}

	public String getAvailable() {
		return available;
	}

	public void setAvailable(String available) {
		this.available = available;
	}

	public String getDel() {
		return del;
	}

	public void setDel(String del) {
		this.del = del;
	}

	public String getAvatarUrl() {
		return avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}
}
